<{include file="tpl/filter.tpl"}>
<{include file="tpl/grid.tpl"}>
	


<script>
    $(function(){
    	/**
    	 * 回复留言
    	 */
    	$(document).on('click','a[name="reply"]',function(){
    		var g = $('input[name="g"]').val();
    		var id = $(this).attr('data-id');
    		var url = '?r=message/reply&g='+g+'&id='+id;
    		layer.open({
    			skin: 'layui-layer-molv'
    			,type: 2
    			,area: ['700px', '600px']
    			,title:'回复'
    			,content: url
    		});
       });   
       
       /**
        * 查看回复
        */
       $(document).on('click','a[name="reply_view"]',function(){
       	    var g = $('input[name="g"]').val();
    		var id = $(this).attr('data-id');
    		var url = '?r=message/reply_view&g='+g+'&id='+id;
    		layer.open({
    			skin: 'layui-layer-molv'
    			,type: 2
    			,area: ['400px', '600px']
    			,title:'回复'
    			,content: url
    			,btn: ['确定']   			
    		});
       });    
       
    });
    
    

    
    function call_back(msg){
        layer.alert(msg, {
		   skin: 'layui-layer-molv' //样式类名
		   ,closeBtn: 0
	    }, function(){
		   layer.closeAll('iframe');
		   window.location.reload();
	 });	

}
</script>